<?php
class UserConstant
{
    //user table name
    const USER_TABLE_NAME = 'user';
    //user table object
    //column
    const USER_TABLE_COLUMN_ID = 'id';
    const USER_TABLE_COLUMN_USERNAME = 'username';
    const USER_TABLE_COLUMN_PASSWORD = 'password';
    const USER_TABLE_COLUMN_EMAIL = 'email';
    const USER_TABLE_COLUMN_GROUP = 'group';
    const USER_TABLE_COLUMN_PROFILE = 'profile';
    //result code
    const USER_TABLE_RESULT_CODE = 'result_code';
    const USER_TABLE_RESULT_DATA = 'result_data';

    //user error code info
    const ERROR_NONE = 999;
    const ERROR_USERNAME_INVALID = 1;
    const ERROR_PASSWORD_INVALID = 2;
    const ERROR_USERID_INVALID = 3;
    const ERROR_USERNAME_EXIST = 4;
    const ERROR_USER_ADD_FAIL = 5;
    const ERROR_GROUP_INVALID = 6;
    const ERROR_UNKNOWN_IDENTITY = 100;
}

?>